//详情页配置
var module=angular.module("movie.details",["ngRoute","moviecat.services.http"]);
module.controller("detailsController",function($scope,$routeParams,HttpServices){
    var id=$routeParams.id;
    $scope.loading=true;
    var url='http://api.douban.com//v2/movie/subject/'+id;
    console.log(url);
    HttpServices.jsonp(url,{},function(data){
        $scope.data=data;
        $scope.loading=false;
        $scope.$apply();

    })

})

module.config(function($routeProvider){
    $routeProvider.when("/list/detail/:id",{
        templateUrl:"movie_details/details.html",
        controller:"detailsController"
    });

})
